package com.spdd.mt.biz.constant;

import com.spdd.mt.common.base.BaseEnum;

/**
 * 系统HTTP请求返回状态码
 *
 * @since 2025年04月02日
 */
public enum ResponseCode implements BaseEnum<String> {

    SUCCESS("0", "请求成功"),
    FAILED("1", "请求失败"),
    NOT_EXISTS("404", "不存在"),
    INNER_ERROR("500", "内部错误"),
    PARAM_ERROR("501", "参数错误"),
    PARAM_SIGN_ERROR("502", "签名异常"),
    NOTIFY_ERROR("600", "回调非success"),
    BUSINESS_ERROR("999", "业务异常"),
    ;

    private final String value;

    private final String desc;

    ResponseCode(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
